how to do logging in selenium